Multi-level file digests

ABSTRACT

Multi-level file digests for electronic files are disclosed. A top level digest represents a single digest for the associated electronic file. Lower level digests represent digests for portions of the associated electronic file. The top level digest is derived from the lower level digests. The top level digest is useful for facilitating rapid comparison to determine whether electronic files are the same. In one embodiment, electronic files are encrypted with a block encryption scheme, and digests are efficiently calculated and stored on a block-by-block basis. Advantageously, when modifications to an encrypted electronic file occurs, only those modified blocks need to be processed to undergo decryption and re-encryption to determine the appropriate digest.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 10/894,493, filed Jul. 19, 2004, and issued as U.S. Pat. No. 7,707,427 on Apr. 27, 2010, which is in turn related to: (i) U.S. patent application Ser. No. 10/815,251, filed Mar. 30, 2004, and entitled “METHOD AND SYSTEM FOR PROVIDING DOCUMENT RETENTION USING CRYPTOGRAPHY,” (ii) U.S. patent application Ser. No. 10/186,203, filed Jun. 26, 2002, and entitled “METHOD AND SYSTEM FOR IMPLEMENTING CHANGES TO SECURITY POLICIES IN A DISTRIBUTED SECURITY SYSTEM,” (iii) U.S. patent application Ser. No. 10/159,537, filed May 5, 2002, and entitled “METHOD AND APPARATUS FOR SECURING DIGITAL ASSETS,” and (iv) U.S. patent application Ser. No. 10/127,109, filed Apr. 22, 2002, and entitled “EVALUATION OF ACCESS RIGHTS TO SECURED DIGITAL ASSETS,” all of which are hereby incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to digests for electronic files and, more particularly, to use of digests in file management systems.

2. Description of Related Art

File management systems can make use of hash or digest values when managing electronic files. The management of electronic files can vary depending on the application. For example, the management may provide document retention for electronic files. As another example, the management may provide file security to restrict access to electronic files.

Hash or digest values are often used to identify electronic files or as a representation (e.g., signature) of their contents. Hash or digest values are also often used to identify or authenticate files. Unfortunately, whenever an electronic file is changed the hash or digest values must again be determined. Computation of hash or digest values can be burdensome when the electronic documents are changed because the computations must be repeated each time. In the case of encrypted documents, the overhead associated with providing hash or digest values can be particularly burdensome. For example, it is inefficient to have to decrypt an entire encrypted file and then subsequently produce the hash or digest values as well as again encrypt the electronic file when only a part of the electronic file has been modified.

Therefore, there is a need for improved approaches to produce hash or digest values for electronic documents.

SUMMARY OF THE INVENTION

The invention relates to inventive approaches to efficiently produce a digest (digest value) for an electronic file. According to the invention, a digest is arranged to have multiple levels, i.e., a hierarchy. The hierarchy has a top level and at least one lower level. The digest at the top level can be referred to as a super digest, and the digests at the at least one lower level can be referred to as block digests or intermediate digests. The top level digest represents a single digest for the associated electronic file. The lower level digests represent digests for portions of the associated electronic file. The top level digest is derived from the lower level digests. The top level digest is useful for facilitating rapid comparison to determine whether electronic files are the same.

In one embodiment, electronic files are encrypted with a block encryption scheme. Block encryption schemes are advantageous because they permit encryption of an electronic file on a block-by-block basis so that individual blocks can be selectively read or written without decrypting or encrypting the entire electronic file. Additionally, block encryption can provide greater security for an electronic file because the entire electronic file is typically not ever completely in the clear. Hence, according to one embodiment of the invention, digests are calculated and stored on a block-by-block basis. Advantageously, when modifications to an encrypted electronic file occur, only those modified blocks need to be processed to undergo decryption and re-encryption to determine the appropriate digest. Hence, the overhead associated with the re-calculation of the digest following a modification to the electronic file can be reduced according to one embodiment of the invention. The invention is thus particularly advantageous for electronic files that utilize block encryption. Two encrypted electronic files, or one encrypted file and one non-encrypted file, can be efficiently compared using the top level digests without having to perform any decryption.

The invention can be implemented in numerous ways, including as a method, system, device, and computer readable medium. Several embodiments of the invention are discussed below.

As a method for forming an encrypted electronic file, one embodiment of the invention includes at least the acts of: identifying an electronic file to be encrypted; obtaining a block of data from the identified electronic file; computing a block digest for the block of data; encrypting the block of data; storing the encrypted block and the block digest to an encrypted electronic file; repeating the obtaining, the computing, the encrypting and the storing acts for at least another block of data from the identified electronic file; computing a super digest for the identified electronic file; and storing the super digest to the encrypted data file.

As a method for storing a modification to an encrypted electronic file having encrypted blocks of data, block digests and a super digest, one embodiment of the invention includes at least the acts of: providing a modified block of data of the encrypted electronic file, the modified block of data being unencrypted; computing a block digest for the modified block of data; encrypting the modified block of data; storing the encrypted block and the block digest to the encrypted electronic file; computing a super digest for the electronic file; and storing the super digest to the encrypted data file.

As a method for comparing electronic files, one embodiment of the invention includes at least the acts of: obtaining a first super digest for a first file, the first super digest being previously determined from a plurality of digests corresponding to portions of the first file; obtaining a second super digest for a second file, the second super digest being previously determined from a plurality of digests corresponding to portions of the second file; comparing the first super digest with the second super digest; and concluding that the first file is the same as the second file if the comparing indicates that the first super digest is the same as the second super digest.

As a computer readable medium including at least computer program code for forming an encrypted electronic file, one embodiment of the invention includes at least: computer program code for identifying an electronic file to be encrypted; computer program code for obtaining blocks of data from the identified electronic file; computer program code for computing a block digest for each of the blocks of data; computer program code for encrypting the blocks of data; computer program code for storing the encrypted blocks and the block digests to an encrypted electronic file; computer program code for computing a top level digest of a multi-level digest for the electronic file; and computer program code for storing the top level digest to the encrypted data file.

Other objects, features, and advantages of the present invention will become apparent upon examining the following detailed description of an embodiment thereof, taken in conjunction with the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will be readily understood by the following detailed description in conjunction with the accompanying drawings, wherein like reference numerals designate like structural elements, and in which:

FIG. 1 is a flow diagram of a file encryption process according to one embodiment of the invention.

FIG. 2 is a diagram of a two-level file digest arrangement according to one embodiment of the invention.

FIG. 3 is a diagram of a three-level file digest arrangement according to one embodiment of the invention.

FIG. 4A is a diagram of a file format according to one embodiment of the invention.

FIG. 4B is a diagram of a file format according to another embodiment of the invention.

FIG. 5 is a flow diagram of an encrypted file modification process according to one embodiment of the invention.

FIG. 6 is a block diagram of a file security system according to one embodiment of the invention.

FIG. 7 shows a basic security system in which the invention may be practiced in accordance with one embodiment thereof.

FIG. 8 shows an exemplary data structure of a secured file that may be used in one embodiment of the invention.

DETAILED DESCRIPTION OF THE INVENTION

The invention relates to inventive approaches to efficiently produce a digest (digest value) for an electronic file. According to the invention, a digest is arranged to have multiple levels, i.e., a hierarchy. The hierarchy has a top level and at least one lower level. The digest at the top level can be referred to as a super digest, and the digests at the at least one lower level can be referred to as block digests or intermediate digests. The top level digest represents a single digest for the associated electronic file. The lower level digests represent digests for portions of the associated electronic file. The top level digest is derived from the lower level digests. The top level digest is useful for facilitating rapid comparison to determine whether electronic files are the same.

In one embodiment, electronic files are encrypted with a block encryption scheme. Block encryption schemes are advantageous because they permit encryption of an electronic file on a block-by-block basis so that individual blocks can be selectively read or written without decrypting or encrypting the entire electronic file. Additionally, block encryption can provide greater security for an electronic file because the entire electronic file is typically not ever completely in the clear. Hence, according to one embodiment of the invention, digests are calculated and stored on a block-by-block basis. Advantageously, when modifications to an encrypted electronic file occur, only those modified blocks need to be processed to undergo decryption and re-encryption to determine the appropriate digest. Hence, the overhead associated with the re-calculation of the digest following a modification to the electronic file can be reduced according to one embodiment of the invention. The invention is thus particularly advantageous for electronic files that utilize block encryption. Two encrypted electronic files, or one encrypted file and one non-encrypted file, can be efficiently compared using the top level digests without having to perform any decryption.

The invention is related to processes, systems, architectures and software products for providing hierarchical digests of digital assets (e.g., electronic files). The invention is particularly suitable in an enterprise environment. In one embodiment, the invention can be implemented by a security system that additionally secures digital assets (i.e., secured data) so that only authenticated users with appropriate access rights or privileges can gain access thereto. In another embodiment, the invention can be implemented by a file retention system that manages retention of digital assets in accordance with retention policies. Digital assets may include, but not be limited to, various types of electronic files, documents, data, executable code, images and text.

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will become obvious to those skilled in the art that the invention may be practiced without these specific details. The description and representation herein are the common meanings used by those experienced or skilled in the art to most effectively convey the substance of their work to others skilled in the art. In other instances, well-known methods, procedures, components, and circuitry have not been described in detail to avoid unnecessarily obscuring aspects of the invention.

Reference herein to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Further, the order of blocks in process flowcharts or diagrams representing one or more embodiments of the invention do not inherently indicate any particular order, nor imply any limitations in the invention.

Embodiments of the invention are discussed herein with reference to FIGS. 1-8. However, those skilled in the art will readily appreciate that the detailed description given herein with respect to these figures is for explanatory purposes as the invention extends beyond these limited embodiments.

FIG. 1 is a flow diagram of a file encryption process 100 according to one embodiment of the invention. The file encryption process 100 can be part of a file management system. The file encryption process 100 initially identifies 102 a file to be encrypted. A first block of data is then read 104 from the identified file. Here, the identified file is processed a block at a time. A block digest is then computed 106 for the block. Digests are well known in the art. One example of a suitable digest is Message Digest 5 (MD5). MD5 is a popular algorithm that produces a 128-bit message digest from a data input (message). The resulting message digest is useful for verification of data integrity or for use with digital signature applications. Another example of a block digest is Secure Hash Algorithm (SHA-1).

Next, the block is encrypted 108. For example, a private key of a public-private key pair can be used to encrypt the block. At this point, the encrypted block and the block digest can be written 110 to an encrypted file. The encrypted file represents the resulting encrypted file that stores the content of the identified file in an encrypted format.

The file encryption process 100 operates on a block-by-block basis. Hence, following the operation 110, a decision 112 determines whether there are more blocks in the identified file that are to be processed. When the decision determines that there is at least one additional block to be processed, the file encryption process 100 returns to repeat the operation 104 so that a next block of data can be read from the identified file and then similarly processed. On the other hand, when the decision 112 determines that there are no more additional blocks of the identified file to be processed, a super digest for the identified file is computed 114. The super digest for the identified file represents a single digest value for the file. The super digest is computed 114 from a plurality of lower level digests as explained in more detail below. The super digest is unique for each different file. In other words, non-identical files will have different super digests, while identical files will have the same super digests.

After the super digest is computed 114, the super digest is written 116 to the encrypted file. Hence, the encrypted file includes not only the encrypted data from the identified file but also the super digest as well as the block digests for each of the blocks. Following the operation 116, the file encryption process 100 is complete and ends.

The digests can have a hierarchy such that there is a top level, or super digest, that represents a single digest for the associated electronic document. The super digest permits efficient comparison of two electronic documents to determine whether they are the same. In particular, two electronic documents with the same super digests are the same electronic document. The super digests can also be used to compare one encrypted file with a non-encrypted file to determine whether they are the same. The super digest can also act as an identifier for the electronic document.

FIG. 2 is a diagram of a two-level file digest arrangement 200 according to one embodiment of the invention. The two-level file digest arrangement 200 derives a super digest 212 directly from block digests 202-210. In this embodiment, the block digests 202-210 form the first level of digests, and the super digest 212 forms a top level digest.

FIG. 3 is a diagram of a three-level file digest arrangement 300 according to one embodiment of the invention. The three-level file digest arrangement 300 includes block digests 302-318, intermediate digests 320-324, and a super digest 326. In this embodiment, the block digests 302-318 form the first level of digests, the intermediate digests 320-324 form a second level digest, and the super digest 326 forms a top level digest. As shown in FIG. 3, the intermediate digest 320 is derived directly from the block digests 302-306; the intermediate digest 322 is derived directly from the block digests 308-312; and the intermediate digest 324 is derived directly from the block digests 314-318. Similarly, the super digest 326 is derived directly from the intermediate digests 320-324.

FIG. 4A is a diagram of a file format 400 according to one embodiment of the invention. The file format 400 includes a file header 402 and a data portion 404. The data portion 404 includes N data blocks. The file header 402 includes file management information as is typical. For example, the file management information can include the number (N) of data blocks, the size of the file or data blocks, etc. In addition, the file header 402 includes a digest portion 406. The digest portion 406 includes not only a super digest but also block digests for each of the N data blocks.

In the embodiment shown in FIG. 4A, all of the digests, including the super digest and the block digests, are stored in the file header 402. However, as file size increases, the amount of digest data to be stored becomes larger. Hence, in other embodiments, some or all of the digest data can be distributed elsewhere in the file format.

FIG. 4B is a diagram of a file format 450 according to another embodiment of the invention. The file format 450 includes a file header 452 and a data portion 454. The file header 452 typically will store a super digest and possibly any intermediate digests being utilized. However, block digests corresponding to data blocks are stored in the data portion 454. More particularly, the data portion 454 stores a plurality of data blocks 456 and a plurality of digest table blocks 458. As an example, the digest table blocks 458 can be associated one to one with the data blocks 456. As another example, the digest table blocks 458 can, more generally, appear at regular intervals in the data portion 454.

Still further, electronic files using the file format 400 or 450 can be secured through use of encryption. In such case, the data blocks can be separately encrypted using a block encryption scheme. The electronic files, such as the file header 402 or 452, can further include security information. The security information is information used to unsecure the secure electronic files. For example, the security information might include an encryption key and/or an encryption policy for the electronic file.

In yet other embodiments, the digest data can be stored remotely from the file. For example, the file might not include some or all of the digest data and instead contain a reference or link to the digest data.

FIG. 5 is a flow diagram of an encrypted file modification process 500 according to one embodiment of the invention. The encrypted file modification process 500 is a process that is utilized when an encrypted file, such as an encrypted file produced by the file encryption process 100 shown in FIG. 1, is subsequently modified. That is, when the data of the encrypted file is modified, one or more of the various digests utilized and stored in the encrypted file will also need to be modified.

The encrypted file modification process 500 begins with a decision 502 that determines whether a block of an encrypted file has been modified. Here, the modification is assumed to be to a single block of an encrypted file. However, it should be understood that the same process can be performed when multiple blocks of the encrypted file have been modified. However, if all of the blocks of the encrypted file have been modified, then the file encryption process 100 can instead be performed given that the entire file needs to be updated.

Once the decision 502 determines that a block of the encrypted file has been modified, a block digest for the modified block is computed 504. The modified block is not encrypted at this point. After the block digest for the modified block is computed 504, the modified block is encrypted 506. The encrypted modified block (encrypted block) and the block digest can then be written 508 to the encrypted file. It should be noted that, in some cases, the encrypted block after the modification is the same size as the encrypted block prior to the modification, such that subsequently stored blocks in the encrypted file are not affected. On the other hand, in the case in which the encrypted block following the modification is larger (or possibly smaller) than the encrypted block prior to the modification, subsequent blocks in the file format may be affected. When other blocks have been modified, the operations 504-508 can repeat for each of the other blocks that have been modified.

In any case, after the encrypted block and the block digest have been written 508, a super digest is computed 510. Here, since at least one block digest has been altered, the previous super digest is no longer useful. Hence, the super digest must be computed 510 any time at least one block has been modified. Thereafter, the super digest is written 512 to the encrypted file. Following the operation 512, the encrypted file modification process 500 is complete and ends.

Secured files are files that require one or more keys, passwords, access privileges, etc. to gain access to their content. The security is often provided through encryption and access rules. The files, for example, can pertain to documents, multimedia files, data, executable code, images and text. In general, a secured file can only be accessed by authenticated users with appropriate access rights or privileges. In one embodiment, each secured file is provided with a header portion and a data portion, where the header portion contains, or points to, security information. The security information is used to determine whether access to associated data portions of secured files is permitted.

As used herein, a user may mean a human user, a software agent, a group of users, a member of the group, a device and/or application. Besides a human user who needs to access a secured document, a software application or agent sometimes needs to access secured files in order to proceed. Accordingly, unless specifically stated, the “user” as used herein does not necessarily pertain to a human being.

FIG. 6 is a block diagram of a file security system 600 according to one embodiment of the invention. The file security system 600 includes an access server 602 that provides central management for the file security system 600. The access server 602 can store or retrieve files from a server file store 604. The access server 602 can control the distribution of cryptographic keys from a key store 606. In addition, the access server 602 can generate cryptographic keys that are stored to the key store 606. Alternatively, the access server 602 can store cryptographic keys in the key store 606 that have been received by the access server 602.

The file security system 600 also includes user machines 608 and user file stores 612. The user machines 608 couple to the access server 602 via a network 610. The network 610 can be a private network or a public network. The user machine 608 also has a user file store 612 coupled thereto. The user file store 612 can store electronic files locally for the user of the corresponding user machine 608. On the other hand, the server file store 604 can provide centralized, remote storage of electronic files for any of the users of the user machines 608.

The file security system 600 enables a user at the user machine 608 to secure an electronic file (document) such that access to the secured electronic file is restricted. In one embodiment of the invention, the access restriction is or includes a document retention restriction. As an example, the document retention restriction could permit subsequent access to the secured electronic file only during the retention period. After the retention period, the secured electronic file would be unable to be unsecured and thus subsequent access would be cryptographically prevented. In one embodiment, the retention period is specified or associated with a document retention policy that is assigned to the secured electronic file.

Once an electronic file has been secured, a user at a user machine can attempt to access the secured electronic file. In doing so, the user machine for the user would need to access the access server 602 and retrieve the appropriate one or more cryptographic keys from the key store 606 that are needed to unsecure the secured electronic file. Such requires that the user machine be connected to the network 610 (i.e., on-line). Alternatively, the user machine could have previously acquired the appropriate one or more cryptographic keys needed to unsecure the secured electronic file and, in such case, the user machine can unsecure the secured electronic file without connecting to the network (i.e., off-line). Regardless, after expiration of the retention period for the secured electronic document, the appropriate one or more cryptographic keys needed to unsecure the secured electronic file are expired (e.g., at both the access server 602/key store 606 and the user machines). Consequently, following the expiration of the retention period, the appropriate one or more cryptographic keys are no longer usable, thus access to the secured electronic document is prevented. The access server 602 and/or the user machine normally also require the user to be authorized to access the electronic file prior to delivery or usage of at least certain cryptographic keys from the key store 606. Typically, the cryptographic keys needed to unsecure a secured electronic file are private keys.

Nevertheless, once the restrictions and/or authorizations have been satisfied and the private keys have been supplied, the private keys are usable to unsecure the secured electronic files, provided the private keys have not expired.

FIG. 7 shows a basic security system 700 in which the invention may be practiced in accordance with one embodiment thereof. The security system 700 may be employed in an enterprise or inter-enterprise environment. It includes a first server 706 (also referred to as a central server) providing centralized access management for the enterprise. The first server 706 can control restrictive access to files secured by the security system 700 as well as file (e.g., document) retention. To provide dependability, reliability and scalability of the system, one or more second servers 704 (also referred to as local servers, of which one is shown) may be employed to provide backup or distributed access management for users or client machines serviced locally. The server 704 is coupled to a network 708 and a network 710. For illustration purposes, there are two client machines 701 and 702 being serviced by the local server 704. Alternatively, one of the client machines 701 and 702 may be considered as a networked storage device.

Secured files may be stored in any one of the devices 701, 702, 704 and 706. When a user of the client machine 701 attempts to exchange a secured file with a remote destination 712 being used by an external user, the processes discussed above can be utilized to ensure that the requested secure file is delivered without compromising the security imposed on the secured file.

According to one embodiment, a created document is caused to go through an encryption process that is preferably transparent to a user. In other words, the created document is encrypted or decrypted under the authoring application so that the user is not aware of the process. One or more keys, such as a user key and a document retention access key, can be used to retrieve a file key to decrypt an encrypted document. Typically, the user key is associated with an access privilege for the user or a group of users, and the document retention access key is associated with a retention period imposed on the created document. For a given secured document, only a user with proper access privileges can access the secured document and then only after a time restriction, if present, is satisfied.

In one setting, a secured document may be uploaded via the network 710 from the client computer 701 to a computing or storage device 702 that may serve as a central repository. Although not necessary, the network 710 can provide a private link between the computer 701 and the computing or storage device 702. Such link may be provided by an internal network in an enterprise or a secured communication protocol (e.g., VPN and HTTPS) over a public network (e.g., the Internet). Alternatively, such link may simply be provided by a TCP/IP link. As such, secured documents on the computing or storage device 702 may be remotely accessed.

In another setting, the computer 701 and the computing or storage device 702 are inseparable, in which case the computing or storage device 702 may be a local store to retain secured documents or receive secured network resources (e.g., dynamic Web contents, results of a database query, or a live multimedia feed). Regardless of where the secured documents or secured resources are actually located, a user, with proper access privileges and within retention periods, can access the secured documents or resources from the client computer 701 or the computing or storage device 702 using an application (e.g., Microsoft Internet Explorer, Microsoft Word or Adobe Acrobat Reader).

Accordingly, respective local modules in local servers, in coordination with the central server, form a distributed mechanism to provide not only distributed access control enforcement but also file (e.g., document) retention. Such distributed access control enforcement ensures the dependability, reliability and scalability of centralized access control management undertaken by the central server for an entire enterprise or a business location.

FIG. 8 shows an exemplary data structure 820 of a secured file that may be used in one embodiment of the invention. The data structure 820 includes two portions: a header (or header portion) 822 and encrypted data (or an encrypted data portion) 824. The header 822 can be generated in accordance with a security template associated with a data store and thus provides restrictive access to the data portion 824 which, for example, is an encrypted version of a plain file. Optionally, the data structure 820 may also include an error-checking portion 825 that stores one or more error-checking codes, for example, a separate error-checking code for each block of encrypted data 824. These error-checking codes may also be associated with a Cyclical Redundancy Check (CRC) for the header 822 and/or the encrypted data 824. The header 822 includes a flag bit or signature 827 and security information 826 that is in accordance with the security template for the data store. According to one embodiment, the security information 826 is encrypted and can be decrypted with a user key associated with an authenticated user (or requestor).

The security information 826 can vary depending upon implementation. However, as shown in FIG. 8, the security information 826 includes a user identifier (ID) 828, access policy (access rules) 829, keys (cryptographic keys) 830, digests 831, and other information 832. Although multiple user identifiers may be used, a user identifier 828 is used to identify a user or a group that is permitted to access the secured file. The access rules 829 provide restrictive access to the encrypted data portion 824. The keys 830 are cipher keys (and/or pointers or identifiers therefor) that, once obtained, can be used to decrypt the encrypted data portion 824 and thus, in general, are protected. The digests 831 are digests for the secured file, such as a super digest and a plurality of lower level digests. In one implementation of the data structure 820, at least one of the keys 830 is encrypted in conjunction with the access rules 829. In another implementation of the data structure 820, at least one of the keys 830 is a file retention access key or is a key encrypted with a file retention access key, either of which can possibly be further protected by the access rules 829. The other information 831 is an additional space for other information to be stored within the security information 826. For example, the other information 831 may be used to include other information facilitating secure access to the secured file, such as version number or author identifier.

The invention is preferably implemented by software, but can also be implemented in hardware or a combination of hardware and software. The invention can also be embodied as computer readable code on a computer readable medium. The computer readable medium is any data storage device that can store data which can thereafter be read by a computer system. Examples of the computer readable medium include read-only memory, random-access memory, CD-ROMs, DVDs, magnetic tape, optical data storage devices, and carrier waves. The computer readable medium can also be distributed over network-coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

The various embodiments, implementations and features of the invention noted above can be combined in various ways or used separately. Those skilled in the art will understand from the description that the invention can be equally applied to or used in various other settings with respect to different combinations, embodiments, implementations or features as provided in the description herein.

The advantages of the invention are numerous. Different embodiments or implementations may yield one or more of the following advantages. One advantage of the invention is that re-calculation of a digest following a modification to an electronic file can be reduced by utilizing the multi-level digest techniques associated with the invention. Another advantage of the invention is that multi-level digests can be used to compare files having a proprietary format. For example, files having an encrypted file format can be compared by using the top level digest, without having to decrypt any portion of the electronic file. As another example, the top level digest can also be used to compare a non-encrypted electronic file with an encrypted electronic file to see if the content of the electronic files is the same.

The foregoing description of embodiments is illustrative of various aspects/embodiments of the present invention. Various modifications to the invention can be made to the preferred embodiments by those skilled in the art without departing from the true spirit and scope of the invention as defined by the appended claims. Accordingly, the scope of the present invention is defined by the appended claims rather than the foregoing description of embodiments. 

1. A method comprising: determining, by at least one processing device, block digests for blocks of data of an electronic file; encrypting, by the at least one processing device, the blocks of data of the electronic file; determining, by the at least one processing device, a super digest for the electronic file from the block digests; storing, by the at least one processing device, the encrypted blocks of data of the electronic file in a body of an encrypted electronic file; and storing, by the at least one processing device, the super digest in an encrypted portion of a header of the encrypted electronic file.
 2. The method of claim 1, further comprising: computing an additional super digest for a non-encrypted electronic file; and comparing the super digest to the additional super digest in order to determine whether the encrypted electronic file and the non-encrypted electronic file comprise a same set of data.
 3. The method of claim 1, further comprising: determining an intermediate digest from a subset of the block digests.
 4. The method of claim 3, wherein determining the super digest comprises determining the super digest from the intermediate digest and one or more additional intermediate digests.
 5. The method of claim 3, further comprising: storing the intermediate digest in the encrypted portion of the header of the encrypted electronic file.
 6. The method of claim 3, further comprising: computing an additional intermediate digest from an additional subset of block digests for a non-encrypted electronic file; and comparing the intermediate digest to the additional intermediate digest in order to directly modify the subset of block digests of the encrypted electronic file.
 7. The method of claim 1, further comprising: storing the block digests in the encrypted portion of the header of the encrypted electronic file.
 8. The method of claim 7, further comprising: comparing a block digest of the encrypted electronic file to a block digest of a non-encrypted electronic file to identify a modified corresponding encrypted block of data; decrypting the encrypted block of data to produce a decrypted block of data; modifying the decrypted block of data; and re-encrypting the modified decrypted block of data.
 9. The method of claim 8, further comprising: recomputing the block digest corresponding to the encrypted block of data; and recomputing the super digest.
 10. A computer-readable device having computer-executable instructions stored thereon, execution of which, by a computing device, causes the computing device to perform operations comprising: determining block digests for blocks of data of an electronic file; encrypting the blocks of data of the electronic file; determining a super digest for the electronic file from the block digests; storing the encrypted blocks of data of the electronic file in a body of an encrypted electronic file; and storing the super digest in an encrypted portion of a header of the encrypted electronic file.
 11. The computer-readable device of claim 10, the operations further comprising: computing an additional super digest for a non-encrypted electronic file; and comparing the super digest to the additional super digest in order to determine whether the encrypted electronic file and the non-encrypted electronic file comprise a same set of data.
 12. The computer-readable device of claim 10, the operations further comprising: determining an intermediate digest from a subset of the block digests.
 13. The computer-readable device of claim 12, wherein determining the super digest comprises determining the super digest from the intermediate digest and one or more additional intermediate digests.
 14. The computer-readable device of claim 12, the operations further comprising: storing the intermediate digest in the encrypted portion of the header of the encrypted electronic file.
 15. The computer-readable device of claim 12, the operations further comprising: computing an additional intermediate digest from an additional subset of block digests for a non-encrypted electronic file; and comparing the intermediate digest to the additional intermediate digest in order to directly modify the subset of block digests of the encrypted electronic file.
 16. The computer-readable device of claim 10, the operations further comprising: storing the block digests in the encrypted portion of the header of the encrypted electronic file.
 17. The computer-readable device of claim 16, the operations further comprising: comparing a block digest of the encrypted electronic file to a block digest of a non-encrypted electronic file to identify a modified corresponding encrypted block of data; decrypting the encrypted block of data to produce a decrypted block of data; modifying the decrypted block of data; and re-encrypting the modified decrypted block of data.
 18. The computer-readable device of claim 17, the operations further comprising: recomputing the block digest corresponding to the encrypted block of data; and recomputing the super digest.
 19. A system comprising: a computer-readable device configured to store: a determining module configured to determine block digests for blocks of data of an electronic file, an encrypting module configured to encrypt the blocks of data of the electronic file, a determining module configured to determine a super digest for the electronic file from the block digests, a storing module configured to store the encrypted blocks of data of the electronic file in a body of an encrypted electronic file, and a storing module configured to store the super digest in an encrypted portion of a header of the encrypted electronic file; and one or more processors configured to process the modules.
 20. A method comprising: receiving, by at least one processing device, a block-encrypted file having corresponding block digests and a super digest; comparing, by the at least one processing device, the super digest to a known valid super digest value to determine whether any errors exist within the block-encrypted file; comparing, by the at least one processing device, one or more of the block digests to known valid block digest values to determine whether any errors exist within corresponding blocks of the block-encrypted file, based on a determination that errors exist within the block encrypted file; and identifying, by the at least one processing device, one or more of the corresponding blocks having errors.
 21. The method of claim 20, further comprising: comparing one or more intermediate digests determined from subsets of the block digests to known valid intermediate digests to determine whether any errors exist in corresponding subsets of the block digests of the block-encrypted file.
 22. The method of claim 20, further comprising: computing the known valid super digest value from a known valid electronic file; and computing the known valid block digest values from the known valid electronic file.
 23. The method of claim 22, wherein computing the known valid super digest value from the known valid electronic file comprises computing the known valid super digest value from a known valid encrypted electronic file.
 24. The method of claim 22, wherein computing the known valid super digest value from the known valid electronic file comprises computing the known valid super digest value from a known valid unencrypted electronic file.
 25. A computer-readable device having computer-executable instructions stored thereon, execution of which, by a computing device, causes the computing device to perform operations comprising: receiving a block-encrypted file having corresponding block digests and a super digest; comparing the super digest to a known valid super digest value to determine whether any errors exist within the block-encrypted file; comparing one or more of the block digests to known valid block digest values to determine whether any errors exist within corresponding blocks of the block-encrypted file, based on a determination that errors exist within the block encrypted file; and identifying one or more of the corresponding blocks having errors.
 26. The computer-readable device of claim 25, the operations further comprising: comparing one or more intermediate digests determined from subsets of the block digests to known valid intermediate digests to determine whether any errors exist in corresponding subsets of the block digests of the block-encrypted file.
 27. The computer-readable device of claim 25, the operations further comprising: computing the known valid super digest value from a known valid electronic file; and computing the known valid block digest values from the known valid electronic file.
 28. The computer-readable device of claim 27, wherein computing the known valid super digest value from the known valid electronic file comprises computing the known valid super digest value from a known valid encrypted electronic file.
 29. The computer-readable device of claim 27, wherein computing the known valid super digest value from the known valid electronic file comprises computing the known valid super digest value from a known valid unencrypted electronic file.
 30. A system comprising: a computer-readable device configured to store: a receiving module configured to receive a block-encrypted file having corresponding block digests and a super digest, a comparing module configured to compare the super digest to a known valid super digest value to determine whether any errors exist within the block-encrypted file, a comparing module configured to compare one or more of the block digests to known valid block digest values to determine whether any errors exist within corresponding blocks of the block-encrypted file, based on a determination that errors exist within the block encrypted file, and an identifying module configured to identify one or more of the corresponding blocks having errors; and one or more processors configured to process the modules. 